package com.songcha.library_database

import android.app.Application
import android.content.Context
//import com.songcha.library_database.helper.MyDaoOpenHelper

class LibraryDatabaseApplication {
    companion object{

        private lateinit var mContext: Application
        //private lateinit var mSession: DaoSession

        @JvmStatic
        fun init(context: Application){
            mContext=context

            /*val devOpenHelper =  MyDaoOpenHelper(mContext, "qmy.db")
            val db = devOpenHelper.writableDatabase
            val daoMaster =  DaoMaster(db)
            mSession = daoMaster.newSession()*/

        }

        @JvmStatic
        fun getContext(): Context {
            return mContext
        }

        /*fun getDaoSession(): DaoSession {
            return mSession
        }*/
    }
}